home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 135 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: gaia.ns.utk.edu!utkux4!sad
  2. From: sad@utkux.utcc.utk.edu (Deutscher)
  3. Newsgroups: comp.lang.c
  4. Subject: [Q] How can I set underflow NaN's to appear as zero?
  5. Date: 2 Jan 1996 00:51:15 GMT
  6. Organization: University of Tennessee, Knoxville
  7. Message-ID: <4c9vi3$rn6@gaia.ns.utk.edu>
  8. NNTP-Posting-Host: utkux4.utcc.utk.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. [ Article crossposted from gnu.gcc.help ]
  12. [ Author was Deutscher ]
  13. [ Posted on 31 Dec 1995 20:08:09 GMT ]
  14.  
  15.  
  16. Hi,
  17.   I am using gcc 2.6.3 and get quite often #NAN's for something too close to
  18. zero to represent. I'd prefer to have these NAN's show up as zero, so instead
  19. of a gradual underflow I'd like an abrupt uunderflow. I know there us a
  20. library function to do exactly this on Solaris ( I used it from cc and f77),
  21. but I was wondering whether there is a way to tell gcc to do the same thing.
  22. I looked trough the info file and got lost ...
  23. My solution at the moment is to pipe the output through a Sed script, but I'd
  24. hope for something closer to the code ..
  25.  
  26. Thanks in advance!   Stefan
  27.  
  28. --
  29. ===============================================================================
  30. Stefan A. Deutscher, sad@utk.edu, (001)-423-[522-7845|974-7838|574-5897]
  31.                                              home^    UTK^     ORNL^
  32. ===============================================================================
  33.  
  34. --
  35. ===============================================================================
  36. Stefan A. Deutscher, sad@utk.edu, (001)-423-[522-7845|974-7838|574-5897]
  37.                                              home^    UTK^     ORNL^
  38. ===============================================================================
  39.